package cn.laixueit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class LoginController {

    @RequestMapping("/login")
    public void login(String loginId, String pwd, HttpSession session){
        System.out.println("登录方法");
        session.setAttribute("user","loginId");
        System.out.println("登录成功");
    }

    @RequestMapping("/findall")
    public String findall(){

        return "/WEB-INF/home.html";
    }
}
